/* 
 *	Copyright 2014  Yanqing Wu
 *		email: yqwu_yqwu@126.com
 *
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
*/

#include "stdafx.h"
#include "StdCtrlSkin_Enums.h"
#include "StdCtrlSkinTool_Utils.h"

CStdCtrlSkin_Enums::CStdCtrlSkin_Enums(void)
{
	m_sticky_list[CStdCtrlSkin_EnumSticky::C] = "c";
	m_sticky_list[CStdCtrlSkin_EnumSticky::N] = "n";
	m_sticky_list[CStdCtrlSkin_EnumSticky::S] = "s";
	m_sticky_list[CStdCtrlSkin_EnumSticky::W] = "w";
	m_sticky_list[CStdCtrlSkin_EnumSticky::E] = "e";

	m_expand_list[CStdCtrlSkin_EnumExpand::X] = "x";
	m_expand_list[CStdCtrlSkin_EnumExpand::Y] = "y";

	//	Cell
	m_attrib_list[CStdCtrlSkin_EnumAttrib::NAME] = "name";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::WIDTH] = "width";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::HEIGHT] = "height";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::PADX] = "padx";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::PADY] = "pady";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::COLSPAN] = "colspan";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::ROWSPAN] = "rowspan";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::STICKY] = "sticky";
	//	Row
	m_attrib_list[CStdCtrlSkin_EnumAttrib::WEIGHT] = "weight";
	//	Table
	m_attrib_list[CStdCtrlSkin_EnumAttrib::EXPAND] = "expand";
	//	ColWeight
	m_attrib_list[CStdCtrlSkin_EnumAttrib::COL] = "col";
	//	BG
	m_attrib_list[CStdCtrlSkin_EnumAttrib::BACKCOLOR] = "backcolor";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::TYPE] = "type";
	//	Gradiant
	m_attrib_list[CStdCtrlSkin_EnumAttrib::COLOR1] = "color1";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::COLOR2] = "color2";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::ALPHA] = "alpha";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::DIRECTION] = "direction";
	//	BG image
	m_attrib_list[CStdCtrlSkin_EnumAttrib::FILEPATH] = "filepath";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::DRAWMODE] = "drawmode";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::TRANS] = "transparent";
	m_attrib_list[CStdCtrlSkin_EnumAttrib::SRCORIGIN] = "srcorigin";
	//	BG cell border
	m_attrib_list[CStdCtrlSkin_EnumAttrib::BBOX] = "bbox";
	//	Window
	//	Root element
	m_attrib_list[CStdCtrlSkin_EnumAttrib::VERSION] = "version";

	//	Row
	m_subnode_list[CStdCtrlSkin_EnumSubNode::CELL] = "cell";
	//	Table
	m_subnode_list[CStdCtrlSkin_EnumSubNode::ROW] = "row";
	m_subnode_list[CStdCtrlSkin_EnumSubNode::COLCONFIG] = "colconfig";
	//	Window
	m_subnode_list[CStdCtrlSkin_EnumSubNode::BG] = "bg";
	m_subnode_list[CStdCtrlSkin_EnumSubNode::TABLE] = "table";
	//	BG
	m_subnode_list[CStdCtrlSkin_EnumSubNode::GRADIANT] = "gradiant";
	m_subnode_list[CStdCtrlSkin_EnumSubNode::IMAGE] = "image";
	//	Root element
	m_subnode_list[CStdCtrlSkin_EnumSubNode::WINDOW] = "window";

	//	BG type
	m_bgtype_list[CStdCtrlSkin_EnumBgType::GRADIENT] = "gradient";
	m_bgtype_list[CStdCtrlSkin_EnumBgType::IMAGE] = "image";
	//	Gradient direction
	m_graddir_list[CStdCtrlSkin_EnumGradDir::HORIZONTAL] = "horizontal";
	m_graddir_list[CStdCtrlSkin_EnumGradDir::VERTICAL] = "vertical";
	m_graddir_list[CStdCtrlSkin_EnumGradDir::SLASH] = "slash";
	m_graddir_list[CStdCtrlSkin_EnumGradDir::BACKSLASH] = "backslash";
	//	Image mode
	m_imgmode_list[CStdCtrlSkin_EnumImgMode::CENTER] = "center";
	m_imgmode_list[CStdCtrlSkin_EnumImgMode::STRETCH] = "stretch";
	m_imgmode_list[CStdCtrlSkin_EnumImgMode::TILE] = "tile";
}


CStdCtrlSkin_Enums::~CStdCtrlSkin_Enums(void)
{
}

